package com.netrust.quarz.common.enums;

import java.util.HashMap;
import java.util.Map;

public enum AdviceContentEnums {
	@SuppressWarnings("serial")
	cpu_high(new HashMap<String,String>(){{
		put("name","CPU利用率过高");
		put("content","IP地址为：?1 的服务器连续 ?2 天CPU资源占用过高");
		put("advice","调高CPU资源配置");
	}},1),
	@SuppressWarnings("serial")
	cpu_low(new HashMap<String,String>(){{
		put("name","CPU利用率过低");
		put("content","IP地址为：?1 的服务器连续?2 天CPU资源占用过低");
		put("advice","调高CPU资源配置");
	}},2),
	@SuppressWarnings("serial")
	mem_high(new HashMap<String,String>(){{
		put("name","内存利用率过高");
		put("content","IP地址为：?1 的服务器连续?2 天内存利用率占用过高");
		put("advice","调高内存资源配置");
	}},3),
	@SuppressWarnings("serial")
	mem_low(new HashMap<String,String>(){{
		put("name","内存利用率过低");
		put("content","IP地址为：?1 的服务器连续?2 天内存利用率占用过低");
		put("advice","调低内存资源配置");
	}},4),
	@SuppressWarnings("serial")
	sto_high(new HashMap<String,String>(){{
		put("name","存储利用率过高");
		put("content","IP地址为：?1 的服务器连续?2 天存储利用率占用过高");
		put("advice","调高存储资源配置");
	}},5),
	@SuppressWarnings("serial")
	sto_low(new HashMap<String,String>(){{
		put("name","存储利用率过低");
		put("content","IP地址为：?1 的服务器连续?2 天存储利用率占用过低");
		put("advice","调低存储资源配置");
	}},6);
	
	// 成员变量  
    private Map<String,String> map;  
    private int index;  
    
    // 构造方法  
    private AdviceContentEnums(HashMap<String,String> map, int index) {  
        this.map = map;  
        this.index = index;  
    }  
    
    // get set 方法  
    public int getIndex() {  
        return index;  
    }  
    public Map<String, String> getMap() {
		return map;
	}

	public void setMap(Map<String, String> map) {
		this.map = map;
	}

	public void setIndex(int index) {  
        this.index = index;  
    }
}
